<%-- 
    Document   : List
    Created on : 2011-4-10, 14:49:18
    Author     : LBH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.news.bean.*" %>
<%@page import="com.news.dao.*" %>
<%@page import="com.news.servlet.*" %>
<%@page import="com.news.dao.impl.*" %>
<%@page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
                <hr></hr>
        <%
           List<News> list=(List<News>)request.getAttribute("listbykey");
           if(list!=null&&list.size()>0){
						for(News news:list){
        %>
        <%=news.getTitle()%><br>
        <%=news.getMessage()%><br>

        <%}}%>
    </body>
</html>
